package com.sneaker.shower.common;

import lombok.Data;

@Data
public class BaseView<T> {
    private T data;
    private String msg;
    private Integer code;

    public BaseView(T data, String msg, Integer code) {
        this.data = data;
        this.msg = msg;
        this.code = code;
    }

    public BaseView() {
        this(null, "success", 0);
    }

    public BaseView(T data) {
        this(data, "success", 0);
    }

    public BaseView(String msg, Integer code) {
        this(null, msg, code);
    }
}
